package com.power200.showcase.service;

import android.app.ListActivity;

import com.power200.showcase.entity.Shop;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created by lenovo on 2015/9/9.
 */
public class DataProvider {

    private List<Shop> shopList;

    public List<Shop> getShopList() {
        if (shopList == null) {
            Random random = new Random();
            shopList = new ArrayList<Shop>();
            for (int i = 0; i < 50; i++) {
                shopList.add(new Shop(i, "shopName" + i, "Category"+random.nextInt(3)));
            }
        }
        return shopList;
    }
}
